﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DAO;
using Entity;

namespace BUS
{
    public class XuatHangBUS
    {
        public static DataTable LayDanhSachTenSP()
        {
            return XuatHangDAO.LayDanhSachTenSP();
        }
        
        public static DataTable LayThongTinKhachHang(String makh)
        {
            return XuatHangDAO.LayThongTinKhachHang(makh);
        }

        public static String LayMaSanPham(String tensp)
        {
            return NhapHangDAO.LayMaSP(tensp);
        }

        public static void XuatHang(PhieuXuatHang ph, ListSP_Xuat list)
        {
            XuatHangDAO.XuatHang(ph, list);
        }

        public static float SoLuongSPCon(String masp)
        {
            return XuatHangDAO.SoLuongSPCon(masp);
        }

        public static int LayGiamGia(String tenkh, String diachi)
        {
            return XuatHangDAO.LayGiamGia(tenkh, diachi);
        }

        public static String LayMaPhieuXuat()
        {
            return XuatHangDAO.LayMaPhieuXuat();
        }
    }
}
